﻿using System;
using System.Collections.Generic;
namespace Meeting.Model
{
    /// <summary>
    /// Topic:实体类(属性说明自动提取数据库字段的描述信息)
    /// </summary>
    [Serializable]
    public partial class Topic
    {
        public Topic()
        { }

        #region Model
        private Guid _id;
        private int _categoryid = 0;
        private string _title;
        private string _details = "";
        private string _description;
        private string _employeeid = "";
        private string _employeename = "";
        private string _employeetitle = "";
        private string _roleid = "";
        private DateTime _createtime;
        private string _comment = "";
        private bool _isactive = true;
        /// <summary>
        /// 
        /// </summary>
        public Guid Id
        {
            set { _id = value; }
            get { return _id; }
        }
        /// <summary>
        /// 会议类型主键
        /// </summary>
        public int CategoryId
        {
            set { _categoryid = value; }
            get { return _categoryid; }
        }
        /// <summary>
        /// 议题标题
        /// </summary>
        public string Title
        {
            set { _title = value; }
            get { return _title; }
        }
        /// <summary>
        /// 议题内容
        /// </summary>
        public string Details
        {
            set { _details = value; }
            get { return _details; }
        }
        /// <summary>
        /// 议题说明，提交领导审批时使用
        /// </summary>
        public string Description
        {
            set { _description = value; }
            get { return _description; }
        }
        /// <summary>
        /// 主讲人主键（对应政务系统用户帐号）
        /// </summary>
        public string EmployeeId
        {
            set { _employeeid = value; }
            get { return _employeeid; }
        }
        /// <summary>
        /// 
        /// </summary>
        public string EmployeeName
        {
            set { _employeename = value; }
            get { return _employeename; }
        }
        /// <summary>
        /// 人员职务
        /// </summary>
        public string EmployeeTitle
        {
            set { _employeetitle = value; }
            get { return _employeetitle; }
        }
        /// <summary>
        /// 用户角色Id
        /// </summary>
        public string RoleId
        {
            set { _roleid = value; }
            get { return _roleid; }
        }
        /// <summary>
        /// 创建日期
        /// </summary>
        public DateTime CreateTime
        {
            set { _createtime = value; }
            get { return _createtime; }
        }
        /// <summary>
        /// 备注
        /// </summary>
        public string Comment
        {
            set { _comment = value; }
            get { return _comment; }
        }
        /// <summary>
        /// 是否有效
        /// </summary>
        public bool IsActive
        {
            set { _isactive = value; }
            get { return _isactive; }
        }

        /// <summary>
        /// 是否提交进入审批流程
        /// </summary>
        public bool IsSubmit
        {
            get;
            set;
        }

        /// <summary>
        /// 议题相关文档数量
        /// </summary>
        public int DocumentCount
        {
            get;
            set;
        }

        /// <summary>
        /// 经办人
        /// </summary>
        public string Agent
        {
            get;
            set;
        }

        /// <summary>
        /// 分机号
        /// </summary>
        public string ExtNumber
        {
            get;
            set;
        }
        #endregion Model

        #region 扩展属性
        /// <summary>
        /// 议题的相关文档
        /// </summary>
        public List<Model.TopicDocument> Documents
        {
            get;
            set;
        }

        public List<Model.TopicApprove> Approves
        {
            get;
            set;
        }

        public List<Model.TopicPlate> Plates
        {
            get;
            set;
        }

        /// <summary>
        /// 征求对象列表(每个人的信息按照格式"角色|帐号|姓名|职务"，如有多个人逗号间隔)
        /// </summary>
        public string Asks
        {
            get;
            set;
        }
        #endregion
    }
}

